@import './_mixin';
@import './_reset.scss';
@import './_ver';


// 导航栏
nav{
    height: 40px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #f5f5f5;

    > div{
        @include Type;
        height: 100%;
        box-sizing: border-box;
        background-color: white;
        display: flex;
        padding-left: 10px;

        >a{
            height: 40px;
            margin-top: 5px;

            &:hover{
                color: $font_hover;
            }
        }

        >div{
            margin-top: 5px;
            margin-left: 60px;
            cursor: pointer;
            text-align: center;
            font-size: 18px;
                height: 30px;
                color: red;

            >div{
                border: 1px solid #f5f5f5;
                border-top: none;
            }
        }

    }
}
//导航栏结束

// 头部
header{
    @include Type;
    height: 100px;
    display: flex;
    border-bottom: 2px solid $font_hover;


    >img{
        width: 190px;
        height: 90px;
    }

    >p{
        margin-left: 70px;
        margin-top:33px;
        font-size: 20px;
        color: orange;
    }
}

// 头部结束


// 主体
section{
    @include Type;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 2px solid #f5f5f5;
    

    >.cart_top{
        box-sizing: border-box;
        padding-left: 10px;
        border-bottom: 2px solid #f5f5f5;

       

        > p {
            margin-top: 10px;
            pointer-events: none;

        }  
        >input{
            margin-top: 8px;
            margin-left: 5px;
                width: 25px;
                height: 25px;
            }
    }


    >div{
        height: 40px;
        display: flex;

    }

    >main{
        min-height: 200px;


        >.cart_empty{
            display: none;
            width: 100%;
            height: 500px;
            position: relative;
            background-color: purple;

            >button{
                width: 200px;
                height: 50px;
                background-color: $font_hover;
                border-radius: 10px;
                font-size: 20px;
                color: white;
                position: absolute;
                top: 0;
                bottom: 0;
                left: 0;
                right: 0;
                margin: auto;

                &:hover{
                   background-color: skyblue;
                }
            }

            &.active{
                display: block
            }
        }

        >.cart_main{
            width: 100px;
            box-sizing: border-box;
            padding: 20px 20px 20px 20px;
            display: none;

            &.active{
                display: block;
            }
            

            > li{
                border: 1px solid #f5f5f5;
                width: 1150px;


                > ol{
                    display: flex;
                    box-sizing: border-box;
                    padding: 5px;

                    >li{
                        border: 2px solid #f5f5f5;
                        border-right: none;
                        &.goods_del{
                            border-right: 2px solid #f5f5f5;
                        }
                    }

                    >.cart_xuanzhong{
                        width: 80px;
                        height: 80px;
                        box-sizing: border-box;
                        padding: 5px;
                        position: relative;

                        >input{
                            width: 20px;
                            height: 20px;
                            position: absolute;
                            top: 0;
                            bottom: 0;
                            left: 0;
                            right: 0;
                            margin: auto
                        };
                    }


                    >.goods_img{
                        width: 80px;
                        height: 80px;
                        box-sizing: border-box;
                        padding: 5px;
                    }

                    >.goods_info{
                        width: 400px;
                        height: 80px;
                        box-sizing: border-box;
                        padding: 5px;
                    }

                    >.goods_price{
                        width: 150px;
                        height: 80px;
                        box-sizing: border-box;
                        padding: 5px;
                        @include CenTer;
                    }

                    >.goods_number{
                        width: 200px;
                        display: flex;
                        align-items: center;
                        justify-content: center;

                         >.add{
                            width: 25px;
                            height: 25px;
                            font-size: 20px;
                            box-sizing: border-box;
                            border-radius: 3px;
                         }

                         >.Num{
                            width: 60px;
                            box-sizing: border-box;
                            height: 25px;
                            margin-left: 5px;
                            margin-right: 5px;
                            text-align: center;
                            box-sizing: border-box;
                            border: 1px solid #f5f5f5;

                         }

                         >.sub{
                            width: 25px;
                            height: 25px;
                            box-sizing: border-box;
                            font-size: 20px;
                            border-radius: 3px;
                         }

                    }

                    >.goods_total{
                        width: 100px;
                        height: 80px;
                        box-sizing: border-box;
                        display: flex;
                        align-items: center;
                        justify-content: center;

                        > input{
                            width: 50px;
                            height: 25px;
                            text-align: center;
                        }
                    }

                    >.goods_del{
                        width: 120px;
                        height: 80px;
                        box-sizing: border-box;
                        display: flex;
                        align-items: center;
                        justify-content: center;


                        >button{
                            width: 50px;
                            height: 30px;
                            border-radius: 6px;
                            background-color: orange;
                            color: white;
                        }
                    }
                }
            }
        }

      }
        >.cart_bottom{
            box-sizing: border-box;
            padding-left: 10px;
            padding-right: 10px;
            display: flex;
            align-items: center;
            padding-top: 14px;
            justify-content: space-between;
            border-top: 1px solid $font_hover;

            >.btns >button{
                padding: 5px;
                height: 25px;
                background-color: orange;
                color: white;
                border-radius: 6px;

                &:hover{
                    background-color: skyblue;
                }

            }
        }
}

// 主体结束

// 尾部
footer{
    @include Type;
    height: 300px;
    background-color: skyblue;
    text-align: center;
    line-height: 300px;
    color: white;
    font-size: 60px;
}


